package net.dl.ss.domain;

/**
 * @author yakovlev.yuriy@gmail.com
 * @since 12.8.2008
 */
public class Couple {
	private Long id;
	private Long eventId;
	private String number;
	private String name;
	private String level;
	private String city;
	private String club;
	private String trainer;
		
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getEventId() {
		return eventId;
	}
	public void setEventId(Long eventId) {
		this.eventId = eventId;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getClub() {
		return club;
	}
	public void setClub(String club) {
		this.club = club;
	}
	public String getTrainer() {
		return trainer;
	}
	public void setTrainer(String trainer) {
		this.trainer = trainer;
	}
	
	public String toXML() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("<couple>");
		buffer.append("<id>" + id + "</id>");
		buffer.append("<eventId>" + eventId + "</eventId>");
		buffer.append("<number>" + number + "</number>");
		buffer.append("<name>" + name + "</name>");
		buffer.append("<level>" + level + "</level>");
		buffer.append("<city>" + city + "</city>");
		buffer.append("<club>" + club + "</club>");
		buffer.append("<trainer>" + trainer + "</trainer>");
		buffer.append("</couple>");
		return buffer.toString();
	}
}
